#include "stdafx.h"
#include "DwarfWarriror.h"
#include "DwarfTypes.h"


CDwarfWarriror::CDwarfWarriror(std::string const & direction, std::string const & state)
	: CDwarf(DWARF_WARRIROR, direction, state)
{
}

void CDwarfWarriror::Attack()
{
	if (GetState() == STANDS)
		SetState(MOVES);

	std::cout << "Attack!" << std::endl;
}

void CDwarfWarriror::Say() const
{
	CDwarf::Say();
	std::cout << " I'm warriror." << std::endl;
}

void CDwarfWarriror::Work()
{
	if (GetState() == STANDS)
		SetState(MOVES);

	std::cout << "I'm warriror. I'm protecting city." << std::endl;
}
